/**
 * Dear programmer:
 * When I wrote this code, only god and I knew how it worked.
 * Now, only god knows it!
 *
 * @author: Pegasus  Date: 2019-02-20 Time: 23:47
 */
import {SetToken} from "./Action"

export const onToken = (state = '', action) => {
  switch (action.type) {
    case SetToken: {
      return action.token
    }
  }
  return state
};
